<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//Route::post('login', 'Passport/login');
//
//// 所有需要权限管理 ->middleware('auth');
Route::group('system', function () {
//    Route::get('admin/list', 'SystemAdmin/list');
//    Route::post('admin/add', 'SystemAdmin/create');
//    Route::post('admin/update', 'SystemAdmin/update');
    // 岗位
    Route::group('post', function () {
        Route::rule('list', 'blog/read');
        Route::rule('create', 'blog/read');
        Route::rule('update', 'blog/read');
        Route::rule('delete', 'blog/read');
    });
})->prefix('admin/')->ext('html');
//
//// 上传
//Route::post('upload/avatar', 'Upload/uploadAvatar');
